<?php 
include_once 'admin-functions.php';
include_once '../functions.php';
session_start();
if (isset($_SESSION['account_name']) && isset($_SESSION['account_rank']) && (isset($_SESSION['logged_in']))) {header('Location: page.php?p=main');}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
	<title>joleblog Admin</title>
	<link rel="stylesheet" media="all" type="text/css" href="theme/style.css" />
		<script type="text/javascript" src="theme/js/javascript.js"></script>
		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	</head>
	<body>
		<div id="main">
			<div id="header">
							<h1><?php print_version();?></h1>
			</div>
			<div id="menu">

			</div>
			<div id="content">
				<div class="article">
				<body>


	 <div id="panel" style="width:200px; text-align: center; margin-left:auto; margin-right:auto;">
	 <div id="left">
	 <div style="text-align: center"><h1>joleblog Login</h1><br /><?php if (isset($error)) {echo $error;}?><br /></div>
						<form action="auth.php" method="post">
						<label for="item_a"><strong>Username:</strong></label>
						<p class="input">
							<input name="user" id="item_a" />
						</p>
						<label for="item_a"><strong>Password:</strong></label>
						<p class="input">
							<input type="password" name="pass" id="item_a" />
						</p>
						<p class="button">
							<button name="submit" type="submit">Log the Inn</button></p>
					</form>
</div></div>

<?php include_once 'theme/bottom.php';?>
